//
//  SummaryViewController.m
//  计算体积、面积2
//
//  Created by student on 16/2/22.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "SummaryViewController.h"
//int calCount = 0; 全局变量

@interface SummaryViewController ()
@property (weak, nonatomic) IBOutlet UILabel *infoLabel;

@end

@implementation SummaryViewController

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    //    self.infoLabel.text = [NSString stringWithFormat:@"总共计算了%i次",calCount];
    
    self.infoLabel.text = [NSString stringWithFormat:@"总共计算了%i次",self.calCount];
    
    }

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
